﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.SharePoint.Common.ServiceLocation;


namespace VisualWebPart
{
    public class VisualWebPartMVPPresenter : Presenter<IVisualWebPartMVPUserControl, IVisualWebPartMVP>
    {
        public VisualWebPartMVPPresenter(Microsoft.SharePoint.SPSite sPSite)
            :base(sPSite)
        {

        }

        public VisualWebPartMVPPresenter()
            :base()
        {

        }

        public override void OnViewInitialized()
        {
            base.OnViewInitialized();

            View.Fill(Model.GetNames());

        }
    }
}
